package io.renren.modules.sys.back.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.sys.back.dao.BtCtWeihubaoyangDao;
import io.renren.modules.sys.back.entity.BtCtWeihubaoyangEntity;
import io.renren.modules.sys.back.service.BtCtWeihubaoyangService;


@Service("btCtWeihubaoyangService")
public class BtCtWeihubaoyangServiceImpl extends ServiceImpl<BtCtWeihubaoyangDao, BtCtWeihubaoyangEntity> implements BtCtWeihubaoyangService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<BtCtWeihubaoyangEntity> page = this.selectPage(
                new Query<BtCtWeihubaoyangEntity>(params).getPage(),
                new EntityWrapper<BtCtWeihubaoyangEntity>()
        );

        return new PageUtils(page);
    }
    @Override
    public Long insertOneBackprimkey (BtCtWeihubaoyangEntity entity){
        return baseMapper.insertOneBackprimkey(entity);
    }
}
